# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=rofi-blocks
pkgver=0.1.0
pkgrel=0
pkgdesc="Rofi modi that allows controlling rofi content through communication with an external program"
url="https://github.com/OmarCastro/rofi-blocks"
arch="all"
license="GPL-3.0-or-later"
depends="cmd:rofi"
makedepends="
	autoconf
	automake
	json-glib-dev
	libtool
	rofi-dev
	"
source="https://github.com/OmarCastro/rofi-blocks/archive/v$pkgver/rofi-blocks-v$pkgver.tar.gz"

prepare() {
	default_prepare

	autoreconf -i
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make -j1
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
c6b6ae9a5a3b5240442432191a2de8b3065bc1e235e2d9259420180a9024454093d0d7724605c91268306d0382cb5f281110b19047029d0af5ac9791546f9c68  rofi-blocks-v0.1.0.tar.gz
"
